import java.util.ArrayList;

public class Player
{
	protected Hand hand;
	protected boolean activeStatus;
	protected boolean activeStatusChanging;
	protected boolean isHuman;
	protected int chips;
	protected String name;
	protected int betedChips;
	
	private Card[] sortedCards; //posortowana reka na uzytek wyboru najlepszych kart
	private ArrayList<Card> bestConfiguration = new ArrayList<Card>(); // najlepszy uklad z kart na rece
	
	public Player()
	{
	}
	public Player(String nickname, boolean human, int startChips)
	{
		name=nickname;
		hand = new Hand();
		isHuman=human;
		chips=startChips;
		activeStatus=false;
		activeStatusChanging=false;
	}

	public int getPlayerCard(int index)
	{
		hand.sort();
		return hand.getValueCard(index);
	}

	public int getNumberOfBestCard()
	{
		return hand.getNumberOfCard(); // wiaze sie z implementacja wyboru najsilniejszej reki
	}
	
	public Card getCard(int index)
	{
		return hand.getCard(index);
	}

	public String getName()
	{
		return name;
	}

	public boolean getActiveStatus()
	{
		return activeStatus;
	}
	public void setActiveStatus(boolean status)
	{
		activeStatus = status;
	}

	public void setChips(int money)
	{
		chips = money;
	}

	public int getChips()
	{
		return chips;
	}

	public void setBetedChips(int money)
	{
		betedChips = money;
	}

	public int getBetedChips()
	{
		return betedChips;
	}

	public void setMyHand(Card[] cards)
	{
		hand.setHand(cards);
	}
	
	public void setActiveStatusChanging(boolean status)
	{
		activeStatusChanging = status;
	}
	public boolean getActiveStatusChanging()
	{
		return activeStatusChanging;
	}
}
